/*
 * Here the pins are set according to the used arduino platform
 * possible types are:
 * + nano: for _all_ nano platforms
 */
void config(){
  type = "nano";
  
  // Lo or Highactive switches
  // TODO: Implement
  //loactive = true;
  
  // trimmer update intervall
  trimUpdate = 5;
  buttonUpdate = 200;
  
  //Special functions
  // TODO
  light = false;
  arm = false;
  
  // Min and max values for the trims
  minTrim= 0;
  maxTrim = 255;
  
  // Set how many channels your receiver supports, the not needed channels will be filled up with minPulse Channels.
  channels = 8;
  
  // Settings for the nano
  if( type == "nano" ){
    // Main steering
    pinThrottle = A0;    // Throttle potentiometer
    pinRoll   = A1;    // Rudder potentiometer
    pinPitch = A2;    // Elevator potentiometer
    pinYaw  = A3;    // Aeleron potentiometer
    
    pinAux1     = 8;
  
    pinPPM = 10;         // PPM Signal Output
    pinBuzzer = 12;      // Buzzer Output
    
    // Trim Buttons
    pinTrimRollU   = 6;
    pinTrimRollD   = 7;
    pinTrimPitchU = 4;
    pinTrimPitchD = 5;
    pinTrimYawU  = 2;
    pinTrimYawD  = 3;
  }
}
